package com.share.example.selenium.config;

import com.share.example.selenium.enums.BusinessEnum;
import com.share.example.selenium.utils.DriverUtil;
import lombok.extern.slf4j.Slf4j;
import org.openqa.selenium.WebDriver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
public class DriverConfigure {

    @Bean
    public static WebDriver webDriver() {
        log.info("正在初始化webdriver");
        WebDriver driver = DriverUtil.getDriver(BusinessEnum.DEFAULT.getCode());
        return driver;
    }
}

